﻿using System;

namespace TBM.Attributes
{
    /// <summary>
    /// 指定父页面
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class ParentAction : Attribute
    {
        private string _name;

        /// <summary>
        /// 父页面方法名(ActionResult Function Name)
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }
        }

        /// <summary>
        /// 指定父页面
        /// </summary>
        /// <param name="name">父页面方法名(ActionResult Function Name)</param>
        public ParentAction(string name)
        {
            _name = name;
        }
    }
}